import request from '@/utils/request'

export function deleteVideo(video) {
    return request({
        url: `/course/video/deleteVideoById`,
        method: 'delete',
        params: { ...video },
    })
}

export function getVideoById(id) {
    return request({
        url: `/course/video/getVideoById/${id}`,
        method: 'get',
    })
}

export function saveOrUpdateVideo(video) {
    return request({
        url: `/course/video/saveOrUpdateVideo`,
        method: 'post',
        data: video
    })
}


